/****** Object:  Stored Procedure [dbo].spNhaCungCapUpdate Script Date: 6/11/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spNhaCungCapUpdate]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spNhaCungCapUpdate]
GO
/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		12/06/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spNhaCungCapUpdate]
(
	@MaNCC nvarchar(6),
	@TenNCC nvarchar(50),
	@DiaChi nvarchar(80),
	@SoDT nvarchar(15),
	@SoFax nvarchar(15),
	@MaSoThue nvarchar(15),
	@Email nvarchar(30),
	@Website nvarchar(35),
	@GhiChu nvarchar(100)
)

WITH ENCRYPTION

AS

SET NOCOUNT ON

UPDATE [tbl_NhaCungCap]
SET [TenNCC] = @TenNCC,
	[DiaChi] = @DiaChi,
	[SoDT] = @SoDT,
	[SoFax] = @SoFax,
	[MaSoThue] = @MaSoThue,
	[Email] = @Email,
	[Website] = @Website,
	[GhiChu] = @GhiChu
WHERE	[MaNCC] = @MaNCC
GO

--GRANT EXECUTE ON [dbo].[spNhaCungCapUpdate] TO [sa]
--GO
